package org.linlinjava.litemall.web.vo.goods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.linlinjava.litemall.db.domain.*;
import org.linlinjava.litemall.web.vo.GoodsPropertyVO;

import java.util.Collection;
import java.util.List;

@Data
@ApiModel(value="套餐商品详情响应类",description="商品详情响应类")
@NoArgsConstructor
public class PackageCategoryGoodsVO {
    @ApiModelProperty(value = "类目")
    private LumierePackageCategoryGoods categoryGoods;

    @ApiModelProperty(value = "商品")
    private LitemallGoods goods;

    /*@ApiModelProperty(value = "属性")
    private List<LitemallGoodsProperty> goodsProperties;*/

    @ApiModelProperty(value = "属性")
    private List<GoodsPropertyVO> goodsProperties;

    @ApiModelProperty(value = "套餐商品 配方详情")
    private List<GoodsFormulaVO> goodsFormulas;


    @Data
    @ApiModel(value="套餐商品 配方详情")
    @NoArgsConstructor
    @AllArgsConstructor
    public static class GoodsFormulaVO {

        @ApiModelProperty(value = "规格")
        private LumiereFormulaSpecifications formulaSpecifications;

        @ApiModelProperty(value = "规格 辅料｜主料 参数配比")
        private Collection<List<FormulaSpecificationsDataProportioningAndMaterialVO>>  formulaSpecificationsDataProportioningsMaster;
        @ApiModelProperty(value = "规格 辅料｜主料 参数配比")
        private Collection<List<FormulaSpecificationsDataProportioningAndMaterialVO>>  formulaSpecificationsDataProportioningsSlave;

    }

}
